package medical.demo.controller;

import com.demo.pojo.THisPatientInformation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import medical.demo.service.THisPatientInformationService;

import javax.annotation.Resource;

@Controller
public class THisPatientInformationController {

    @Resource
    private THisPatientInformationService tHisPatientInformationService;

    @PostMapping("/THisPatientInformation/add")
    public String addTHisPatientInformation(THisPatientInformation tHisPatientInformation){
        tHisPatientInformationService.addTHisPatientInformation(null);
        return "registration/Department";
    }
}
